package com.demo.service.impl;

import com.demo.dao.UserWxMapper;
import com.demo.entity.UserWx;
import com.demo.service.IUserWxService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by liushaokang on 2017/3/14.
 */

@Service
public class UserWxServiceImpl implements IUserWxService{

    @Autowired
    private UserWxMapper userWxDao;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return userWxDao.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(UserWx record) {
        return userWxDao.insert(record);
    }

    @Override
    public int insertSelective(UserWx record) {
        return userWxDao.insertSelective(record);
    }

    @Override
    public UserWx selectByPrimaryKey(Integer id) {
        return userWxDao.selectByPrimaryKey(id);
    }

    @Override
    public UserWx selectByOpenid(String openid) {
        return userWxDao.selectByOpenId(openid);
    }

    @Override
    public UserWx selectByUnionid(UserWx record) {
        return userWxDao.selectByUnionid(record);
    }

    @Override
    public int updateByPrimaryKeySelective(UserWx record) {
        return userWxDao.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(UserWx record) {
        return userWxDao.updateByPrimaryKey(record);
    }


}
